import service from "@/services/abstract.service";

export class UserService {

  // 登录
  public static login(name: string, password: string) {
    return service({
      url: "/data/user/login",
      method: "get",
      params: {
        name,
        password
      }
    });
  }

  // 注册
  public static register(name: string, password: string, client_tag: number, t_password: string) {
    return service({
      url: "/data/user/register",
      method: "get",
      params: {
        name,
        password,
        client_tag,
        t_password
      }
    });
  }

  // 登出
  public static logout() {
    return service({
      url: "/data/user/logout",
      method: "get",
    });
  }

}
